//
//  GlobalHeader.m
//  kabu
//
//  Created by XiangDongMBP on 2017/1/17.
//  Copyright © 2017年 East. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GlobalHeader.h"

#pragma mark - WeChat SDK
NSString *const EFAGlobalWeChatAppId = @"wx2ab8f4f8ca0300f1";               // 微信SDK的AppId
#pragma mark - QiNiu
NSString *const EFAGlobalQiNiuPrefix = @"https://efairyqiniu.tokabu.com";   //!< 七牛的拼接前缀

#pragma mark - JPush、AMap SDK、Bugly SDK、融云SDK
#if APP_TARGET_EFAIRY
    NSString *const EFAGlobalJPushAppKey = @"e1882a538d8f06d19a492b13";         ///< 电次元-极光推送的AppKey
    NSString *const EFAGlobalAMapAppKey = @"36add1269f92c6749a6ee07192a6b506";  ///< 电次元-高德地图的AppKey
    NSString *const EFAGlobalBuglyAppId = @"d41e7812cb";                        ///< 电次元-Bugly的AppId
    #if EFA_DEBUG_MODE
    NSString *const EFAGlobalRongCloudAppKey = @"vnroth0kvdmso";                ///< 电次元-融云的AppKey(测试版)
    #else
    NSString *const EFAGlobalRongCloudAppKey = @"m7ua80gbmpi3m";                ///< 电次元-融云的AppKey(正式版)
    #endif
#elif APP_TARGET_PST
    NSString *const EFAGlobalJPushAppKey = @"e1882a538d8f06d19a492b13";         ///< 德派森-极光推送的AppKey
    NSString *const EFAGlobalAMapAppKey = @"36add1269f92c6749a6ee07192a6b506";  ///< 德派森-高德地图的AppKey
    NSString *const EFAGlobalBuglyAppId = @"d41e7812cb";                        ///< 德派森-Bugly的AppId
    #if EFA_DEBUG_MODE
    NSString *const EFAGlobalRongCloudAppKey = @"vnroth0kvdmso";                ///< 德派森-融云的AppKey(测试版)
    #else
    NSString *const EFAGlobalRongCloudAppKey = @"m7ua80gbmpi3m";                ///< 德派森-融云的AppKey(正式版)
    #endif
#elif APP_TARGET_CCIOT
    NSString *const EFAGlobalJPushAppKey = @"24744b5b5261281b54469a6f";         ///< 中城物联-极光推送的AppKey
    NSString *const EFAGlobalAMapAppKey = @"7b6bea31045f6a35b0149e3e3bcf212b";  ///< 中城物联-高德地图的AppKey
    NSString *const EFAGlobalBuglyAppId = @"973db8f1a5";                        ///< 中城物联-Bugly的AppId
    #if EFA_DEBUG_MODE
    NSString *const EFAGlobalRongCloudAppKey = @"pvxdm17jpizar";                ///< 中城物联-融云的AppKey(测试版)
    #else
    NSString *const EFAGlobalRongCloudAppKey = @"uwd1c0sxuvio1";                ///< 中城物联-融云的AppKey(正式版)
    #endif
#elif APP_TARGET_WORSHIPLOVE
    NSString *const EFAGlobalJPushAppKey = @"e1882a538d8f06d19a492b13";         ///< 崇爱电子-极光推送的AppKey
    NSString *const EFAGlobalAMapAppKey = @"36add1269f92c6749a6ee07192a6b506";  ///< 崇爱电子-高德地图的AppKey
    NSString *const EFAGlobalBuglyAppId = @"d41e7812cb";                        ///< 崇爱电子-Bugly的AppId
    #if EFA_DEBUG_MODE
    NSString *const EFAGlobalRongCloudAppKey = @"vnroth0kvdmso";                ///< 崇爱电子-融云的AppKey(测试版)
    #else
    NSString *const EFAGlobalRongCloudAppKey = @"m7ua80gbmpi3m";                ///< 崇爱电子-融云的AppKey(正式版)
    #endif
#endif

#pragma mark - AppStoreID
NSString *const EFAGlobalAppStoreId = @"1215602031";                //!< AppStore的ID

#pragma mark - Notification
NSString *const EFAGlobalNotiUserTokenInvalid = @"EFAGlobalNotiUserTokenInvalid";   //!< Token失效
NSString *const EFAGlobalNotiLogout = @"EFAGlobalNotiLogout";                       //!< 退出登录
NSString *const EFAGlobalNotiLoginRootVC = @"EFAGlobalNotiLoginRootVC";             ///< 登录
NSString *const EFAGlobalNotiRCIMDispatchMsg = @"EFAGlobalNotiRCIMDispatchMsg";     //!< 融云接收到推送消息
NSString *const EFAGlobalNotiGETUIDispatchMsg = @"EFAGlobalNotiGETUIDispatchMsg";   //!< 个推接收到推送消息
NSString *const EFAGlobalNotiPushProcess = @"EFAGlobalNotiPushProcess";             ///< 收到推送需要处理
NSString *const EFAGlobalNotiPassageway = @"EFAGlobalNotiPassageway";               //!< 通道是否修改完毕

#pragma mark - NSUserDefaultKey
NSString *const EFAGlobalUserDefaultsAccount = @"EFAGlobalUserDefaultsAccount";     //!< 用户名
NSString *const EFAGlobalUserDefaultsPwd = @"EFAGlobalUserDefaultsPwd";             //!< 密码
NSString *const EFAGlobalUserDefaultsWXAccessToken = @"EFAGlobalUserDefaultsWXAccessToken"; //!< 微信AccessToken
NSString *const EFAGlobalUserDefaultsAppVersion = @"EFAGlobalUserDefaultsAppVersion";       //!< App版本号
//NSString *const EFAGlobalUserDefaultsAccessToken = @"EFAGlobalUserDefaultsAccessToken";//!< Token

#pragma mark - Length
NSInteger const EFAGlobalPhoneNumLength = 11;
NSInteger const EFAGlobalPwdMinLength = 6;
NSInteger const EFAGlobalPwdMaxLength = 20;
NSInteger const EFAGlobalVerifyCodeLength = 4;

NSInteger const EFAGlobalNickNameMaxLength = 15;     //!< 昵称最大长度

#pragma mark - Color
NSUInteger const EFAGlobalColorDarkGreen  = 0x282449;            // 深午夜色
NSUInteger const EFAGlobalColorLightGreen = 0x1E245D;            // 浅午夜色0x1E245D
NSUInteger const EFAGlobalColorFontDarkBlack = 0x222222;         // 文字深黑色
NSUInteger const EFAGlobalColorFontMidBlack = 0x555555;          // 文字中黑色
NSUInteger const EFAGlobalColorFontLightBlack = 0x888888;        // 文字浅黑色
NSUInteger const EFAGlobalColorBgGray = 0xEDEEF0;                // 背景颜色
NSUInteger const EFAGlobalColorBorderColor = 0xD7D7D7;           // Button的border颜色

#pragma mark - File Name
#if APP_TARGET_EFAIRY
NSString *const EFAGlobalFileAppFunction = @"电次元功能特性";
NSString *const EFAGlobalFileAppTermServer = @"电次元服务条款";
NSString *const EFAGlobalImageAppIcon = @"global_logo";      ///< 图标
NSString *const EFAGlobalIntroduceVideoUrl = @"https://efairyqiniu.tokabu.com/pst_introduce_video.mp4";
#elif APP_TARGET_PST
NSString *const EFAGlobalFileAppFunction = @"德派森功能特性";
NSString *const EFAGlobalFileAppTermServer = @"德派森服务条款";
NSString *const EFAGlobalImageAppIcon = @"global_logo_cciot";      ///< 图标
NSString *const EFAGlobalIntroduceVideoUrl = @"https://efairyqiniu.tokabu.com/pst_introduce_video.mp4";
#elif APP_TARGET_CCIOT
NSString *const EFAGlobalFileAppFunction = @"中城物联功能特性";
NSString *const EFAGlobalFileAppTermServer = @"中城物联服务条款";
NSString *const EFAGlobalImageAppIcon = @"global_logo_cciot";      ///< 图标
NSString *const EFAGlobalIntroduceVideoUrl = @"https://efairyqiniu.tokabu.com/cciot_introduce_video.mp4";
#elif APP_TARGET_WORSHIPLOVE
NSString *const EFAGlobalFileAppFunction = @"中城物联功能特性";
NSString *const EFAGlobalFileAppTermServer = @"中城物联服务条款";
NSString *const EFAGlobalImageAppIcon = @"global_logo_cciot";      ///< 图标
NSString *const EFAGlobalIntroduceVideoUrl = @"https://efairyqiniu.tokabu.com/pst_introduce_video.mp4";
#endif

#pragma mark - Network
#if APP_TARGET_EFAIRY
    #if EFA_DEBUG_MODE
    NSString * const EFAGlobalAPIBaseUrl = @"https://efairyts.tokabu.com";   //!< API的BaseUrl(测试版https://efairyts.tokabu.com)
    #else
    NSString * const EFAGlobalAPIBaseUrl = @"https://efairy.tokabu.com";     //!< API的BaseUrl(正式版)
    #endif
#elif APP_TARGET_PST
    #if EFA_DEBUG_MODE
    NSString * const EFAGlobalAPIBaseUrl = @"https://cciotapp.tokabu.com";   //!< API的BaseUrl(测试版)
    //NSString * const EFAGlobalAPIBaseUrl = @"https://efairydps.tokabu.com";    //!< API的BaseUrl(测试版)
    #else
    NSString * const EFAGlobalAPIBaseUrl = @"https://efairy.tokabu.com";     //!< API的BaseUrl(正式版)
    #endif
#elif APP_TARGET_CCIOT
    NSString * const EFAGlobalAPIBaseUrl = @"https://cciotapp.tokabu.com";   //!< API的BaseUrl(正式版)
#elif APP_TARGET_WORSHIPLOVE
    #if EFA_DEBUG_MODE
    NSString * const EFAGlobalAPIBaseUrl = @"https://cciotapp.tokabu.com";   //!< API的BaseUrl(测试版)
    #else
    NSString * const EFAGlobalAPIBaseUrl = @"https://efairy.tokabu.com";     //!< API的BaseUrl(正式版)
    #endif
#endif
NSString *const EFAGlobalAPIVersion = @"1.4";              //!< 当前API的Version=1.3
NSInteger const EFAGlobalAPITokenInvalid = 444;            //!< 鉴权失败，需要重新登录
NSInteger const EFAGlobalAPIUserNotLogin = 445;            //!< 没有登录，需要登录
NSString *const EFAGlobalJsonKeyErrCode = @"err_code";     //!< Json的err_code
NSString *const EFAGlobalJsonKeyMsg = @"msg";              //!< Json的Msg
NSString *const EFAGlobalJsonKeyResult = @"result";        //!< Json的Result
